package com.example.business_oa.controller;

import com.example.business_oa.service.HyJobService;
import com.example.business_oa.service.HymianshiService;
import com.example.comment_oa.pojos.Jobrequirements;
import com.example.comment_oa.response.AjaxResponse;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@CrossOrigin
@RequestMapping("/businessOa")
public class HyJobController {
    @Resource
    HyJobService hyJobService;

    //新增一条需求数据
    @PostMapping("job/addjob")
    public AjaxResponse addjob(@RequestBody Jobrequirements job){
        System.err.println(job);
        int addjob = hyJobService.addjob(job);
        return AjaxResponse.success(addjob);
    }
}
